﻿export default [
  {
    path: '/login',
    layout: false,
    component: './Login',
  },
  {
    path: '/welcome',
    name: '首页',
    icon: 'smile',
    component: './Welcome',
  },
  {
    path: '/',
    icon: 'table',
    name: '系统',
    routes: [
      {
        name: '管理员',
        path: '/system-user',
        component: './system/User',
      },
      {
        name: '角色',
        path: '/system-role',
        component: './system/Role',
      },
      {
        name: '权限',
        path: '/system-permission',
        component: './system/Permission',
      },
      {
        name: '菜单',
        path: '/system-menu',
        component: './system/Menu',
      },
      {
        component: './404',
      },
    ],
  },
  {
    path: '/',
    redirect: './welcome',
  },
  {
    component: './404',
  },
];
